<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>主页</title>
    <link rel="stylesheet" href="../css/toolbar.css">
    <script src="../js/jquery.mini.js"></script>
</head>

<body>
    <div class="toolbar">
        <div class="toolbar-inside">
            <div class="toolbar-content">
                <div class="toolbar-content-left">
                    <div class="logo-box">
                        <a href="../index.html"><img src="../imgs/二手回收.png" alt=""></a>
                    </div>
                    <ul class="toolbar-Menu-l">
                        <li><a href="../web/goods-market.html">跳蚤市场</a></li>
                        <li><a href="">话题广场</a></li>
                        <!--<li><a href="indivisual-info.html">个人中心</a></li>-->
                    </ul>
                </div>
                <div class="toolbar-content-middle">
                    <div class="search-box">
                        <form action="">
                            <input type="text" name="search-content" id="search-box">
                            <div class="search-btn">搜索</div>
                        </form>
                    </div>
                </div>
                <div class="toolbar-content-right">
                    <div class="toolbar-Menu-r">
                        <div class="toolbar-r-items" id="login-reg">
                            <div class="login-reg-btn">登录/注册</div>
                            <div class="login-reg-menu">
                                <a id="first-a" href="../web/indivisual-info.html">个人中心</a>
                                <a href="">我的闲置</a>
                                <a href="">我的帖子</a>
                                <a href="">我的订单</a>
                                <a href="">退出</a>
                            </div>
                        </div>
                        <div class="toolbar-r-items" id="notice">
                            <a href="">消息</a>
                            <div class="news-menue">
                                <a href="">评论</a>
                                <a href="">点赞</a>
                                <a href="">通知</a>
                            </div>
                        </div>
                        <div class="toolbar-r-items" id="create">
                            <div class="create-btn">服务 </div>
                            <div class="create-menue">
                                <a href="../web/post-goods.html">发布闲置</a>
                                <a href="../web/post.html">发布帖子</a>
                            </div>

                        </div>
                    </div>
                </div>
            </div>
        </div>
</body>
<script src="../js/toolbar.js"></script>
<script>
    $(function () {

        var imgpath = sessionStorage.getItem('imgpath');
        var username = sessionStorage.getItem('username');
        if (sessionStorage.length != 0) {
            if (imgpath == 'null') {
                alert("头像路径没有设置");
            } else {
                var html = "<img src='" + imgpath + "'' class='head-pic'>"
                $('.login-reg-btn').text(" ");
                $('.login-reg-btn').append(html);

                // $('.login-reg-btn').text(username);
            };


        }

    });
</script>

</html>